﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XinLife.Core.Caches
{
    [AttributeUsage(AttributeTargets.Method, Inherited = true)]
    public class CacheableAttribute : Attribute
    {
        public int DurationInSeconds { get; }

        public CacheableAttribute(int durationInSeconds)
        {
            DurationInSeconds = durationInSeconds;
        }
    }
}
